import { AccessLevel, SingletonProto } from "@eggjs/tegg"


/**
 * 字符串工具类
 */
@SingletonProto({
    accessLevel: AccessLevel.PUBLIC
})
export class StringUtils {

    /**
     * 判断是否数组格式
     * @param str 字符串或数组
     * @returns 
     */
    static IsArray(str: any) {
        if (Array.isArray(str) || str.includes(",")) {
            return true
        } else {
            return false
        }
    }
}